import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;

public class ShopSituation {
    private HashMap<String,Long> annualSales;
    private ArrayList<AnnualBonus> totalBonusRecord;

    public int calculate_sales(SalesRecord record)
    {
        String year=new SimpleDateFormat("yyyy").format(record.getDate());
        annualSales.put(year,(long)record.getSalesAmount());

        AnnualBonus bonus = new AnnualBonus(year,record.getSales());
        totalBonusRecord.add(bonus);

        return 1;
    }

}

class AnnualBonus {
    private String year;
    private SalesPerson sales;
    private int money;

    public AnnualBonus(String year, SalesPerson sales) {
        this.year = year;
        this.sales = sales;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public SalesPerson getSales() {
        return sales;
    }

    public void setSales(SalesPerson sales) {
        this.sales = sales;
    }

    public int getMoney() {
        return money;
    }

    public void CaluateMoney() {
        this.money = money;
    }
}
